import request from 'umi-request';

export async function queryCadreList(params) {
  return request('/hr-ssc/api/api-admin/regular/getRegularBpmList', {
    method: 'post',
    data: {
      pageNum: params.current,
      pageSize: params.pageSize,
      type:[2,3],
      userCode:params.code,
      name:params.name,
    },
  }).then((res) => {
    const data = res.data;
    return {
      current: data.currPage,
      data: data.list,
      pageSize: data.pageSize,
      success: true,
      total: data.totalCount,
    };
  });
}
